package com.lhkj.ct.meta.modules.gauge.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2023-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TblOption对象", description="")
public class TblGaugeOption implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "选项id")
    private String optId;

    @ApiModelProperty(value = "题目id", notes = "后台设置")
    private String questionId;

    @ApiModelProperty(value = "选项符号", notes = "如A，B，C等", example = "A")
    @NotBlank(message = "选项符号不能为空")
    private String optSymbol;

    @ApiModelProperty(value = "选项内容")
//    @NotBlank(message = "选项内容不能为空")
    private String optContent;

    @ApiModelProperty(value = "题目内容")
//    @NotBlank(message = "请设置题目内容")
    private String optPicture;

    @ApiModelProperty(value = "选项分值")
    private Double optValue;

    @ApiModelProperty(value = "选项排序", notes = "后台设置")
    private Integer optSort;

    @ApiModelProperty(value = "选项逻辑", notes = "对应题目vId")
    private String optLogic;

}
